package com.csun.dsms.mapper;

import com.csun.dsms.model.domain.DsmsRoleUser;
import tk.mybatis.mapper.common.Mapper;

public interface DsmsRoleUserMapper extends Mapper<DsmsRoleUser> {

    /**
     * 用户是否绑定该角色.
     *
     * @param userId    the user id
     * @param roleId    the role id
     *
     * @return  the dsms role user.
     */
    DsmsRoleUser getByUserIdAndRoleId(Long userId, Long roleId);
}